import request from '@/utils/request'

export function newDispatch(data) {
  return request({
    url: '/NewPatientDispatch',
    method: 'post',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function selectTriageDiseaseHistories(data) {
  return request({
    url: '/selectTriageDiseaseHistories',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function saveTriageDiseaseHistories(data) {
  return request({
    url: '/saveTriageDiseaseHistories',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function updateTriageDiseaseHistories(data) {
  return request({
    url: '/updateTriageDiseaseHistories',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function getOnUseClassificationa(data) {
  return request({
    url: '/getOnUseClassificationa',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function getAllClassificationInfo(data) {
  return request({
    url: '/getAllClassificationInfo',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function saveClassificationInfo(data) {
  return request({
    url: '/saveClassificationInfo',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function modifyCancel(data) {
  return request({
    url: '/modifyCancel',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function saveMass(data) {
  return request({
    url: '/saveMass',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function massListByPojo(data) {
  return request({
    url: '/massListByPojo',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function getHospitalized(data) {
  return request({
    url: '/getHospitalized',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function saveHospitalized(data) {
  return request({
    url: '/saveHospitalized',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function getClinicalSignDatas(data) {
  return request({
    url: '/getClinicalSignDatas',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function saveClinicalSignDatas(data) {
  return request({
    url: '/saveClinicalSignDatas',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function selectRequiredField(data) {
  return request({
    url: '/selectRequiredFieldByhospitalid',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function selectTriageScore(data) {
  return request({
    url: '/selectTriageScore',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function selectPainScore(data) {
  return request({
    url: '/selectPainScore',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function savePainScore(data) {
  return request({
    url: '/savePainScore',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function saveTriageScore(data) {
  return request({
    url: '/saveTriageScore',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function updateTriageScore(data) {
  return request({
    url: '/updateTriageScore',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function getDepartmentList(data) {
  return request({
    url: '/getDepartmentList',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function getUserListWeb(data) {
  return request({
    url: '/getUserListWeb',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function sendMessageDirectHandover(data) {
  return request({
    url: '/sendMessageDirectHandover',
    method: 'post',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function savePhysicalExamination(data) {
  return request({
    url: '/savePhysicalExamination',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function getPhysicalExamination(data) {
  return request({
    url: '/getPhysicalExamination',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
